package com.ruijie.camerax.media

import android.util.Log

/**
 *author: luqihua
 *date:2021/7/27
 *description:
 **/
object StreamLog {
    private var isDebug = true

    @JvmStatic
    fun setDebug(isDebug: Boolean) {
        this.isDebug = isDebug
    }

    @JvmStatic
    fun d(TAG: String, message: String) {
        if (!isDebug) return
        Log.d(TAG, message)
    }


    @JvmStatic
    fun i(TAG: String, message: String) {
        if (!isDebug) return
        Log.i(TAG, message)
    }

    @JvmStatic
    fun e(TAG: String, message: String, throwable: Throwable?) {
        if (!isDebug) return
        Log.e(TAG, message, throwable)
    }
}